package com.hxzy.module.admin;

import com.hxzy.common.web.resp.R;
import com.hxzy.module.admin.fallback.AdminFeignClientFallback;
import com.hxzy.module.admin.resp.AccountDetailResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 编写openFeign接口，定义对外提供访问方式，url地址，参数
 * value="admin" 调用 Spring Cloud LoadBalancer client.
 */
@FeignClient(value = "admin",fallbackFactory = AdminFeignClientFallback.class)
public interface AdminFeignClient {


    @GetMapping(value = "/admin/account/{id}")
    R<AccountDetailResp> adminAccountFindById(@PathVariable(value = "id") String accountId);


}
